<template>
  <div class="header-container" :style="{'background-color':bgcolor,color:color}" >{{title || 'header组件'}}</div>
</template>

<script>
export default {
    name:'MyHeader',
    props:['title','bgcolor','color']

}
</script>

<style lang="less">
.header-container{
    height: 45px;
    background-color: pink;
    text-align: center;
    line-height: 45px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}
</style>